using System;
using Microsoft.SPOT;
using System.Collections;

namespace N2Plus_GPS
{
    /// <summary>
    /// Stores all the information of the race track
    /// </summary>
    public class Racetrack
    {
        #region Constants
        #endregion

        #region Private Variables
        #endregion

        #region Constructors
        /// <summary>
        /// Default Constructor
        /// </summary>
        public Racetrack()
        {

        }
        #endregion

        #region Properties
        /// <summary>
        /// Stores all the sectors associated with this race track
        /// </summary>
        public ArrayList Sectors
        {
            get;
            set;
        }

        /// <summary>
        /// Stores the GPS Points defining location of race track
        /// </summary>
        public ArrayList Location
        {
            get;
            set;
        }

        /// <summary>
        /// Stores the name of the race track
        /// </summary>
        public string Name
        {
            get;
            set;
        }
        #endregion

        #region Methods
        #endregion

        #region Overrides
        /// <summary>
        /// Override to provide better string representation
        /// </summary>
        /// <returns>Name of race track</returns>
        public override string ToString()
        {
            return Name.Length == 0 ? "Specify race track name" : Name;
        }
        #endregion
    }
}
